package com.info.zhiduoduo.repository.entity.project;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 *  上传文件保存记录
 * @author tianyonghong
 * @create 2022/7/29
 */
@Data
@Accessors(chain = true)
@TableName("zdd_project_file_record")
public class ProjectFileRecord extends Model<ProjectFileRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("企业ID")
    private Integer compid;

    @ApiModelProperty("项目类型")
    private Integer projectType;

    @ApiModelProperty("保存文件路径")
    private String filePath;

    @ApiModelProperty("上传原文件名称")
    private String sourceFileName;

    private Date createdTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
